""" 
@Version: 0.1
@FileName    :    while
@Author      :    kx
@CreateTime  :    2021/7/9 18:25 
@Description :    用while循环实现1~100求和
"""

sum = 0
i = 1
while i<101:
    sum += i
    i += 1
print(sum)